Note

interface Note

This module provides methods to manage and interact with notes associated with the connected user. Users can retrieve, create, update, and delete notes, as well as associate notes with messages. Changes to the note list can be monitored for real-time updates.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val noteList: ArrayItemList<Note>

Retrieves the list of Note objects associated with the connected user.

Functions

Link copied to clipboard
abstract fun createNote(text: String?, category: String?, additionalDescription: String? = null, position: Int? = 0, listener: RainbowListener<Note, NoteRepository.CreateNoteError>? = null)

Creates a Note associated with a specific category.

Link copied to clipboard
abstract fun createNoteFromMessage(message: IMMessage?, conversation: IRainbowConversation?, category: String?, position: Int? = 0, listener: RainbowListener<Note, NoteRepository.CreateNoteError>? = null)

Creates a Note associated with a message and a specific category.

Link copied to clipboard
abstract fun deleteNote(note: Note, listener: RainbowListener<Unit, Unit>? = null)

Deletes a Note.

Link copied to clipboard
abstract fun deleteNoteFromMessage(imMessage: IMMessage?, listener: RainbowListener<Unit, Unit>?)

Deletes a Note associated with a message.

Link copied to clipboard
abstract fun fetchNotes(category: String? = null, withResolution: Boolean = false, listener: RainbowListener<Map<String, List<Note>>, Unit>? = null)

Refreshes the Note list of the connected user.

Link copied to clipboard
abstract fun updateNote(note: Note, newCategory: String? = null, newPosition: Int? = null, listener: RainbowListener<Unit, Unit>? = null)

Updates a Note category.